package com.sykj.springboot.test.designMode.Observer2;

import lombok.Data;

@Data
public class HanFeiZi  {

    private LiSi liSi =new LiSi();


    public void haveBreakFast() {
        System.out.println("韩非子：开始吃早饭");
        liSi.update("韩非子吃早饭");
    }

    public void haveFun() {
        System.out.println("韩非子：开始娱乐了");
        liSi.update("韩非子开始娱乐");
    }
}
